package cn.anxingongyou.anxin.service;

import cn.anxingongyou.anxin.entity.OpenIdJson;
import cn.anxingongyou.anxin.entity.PhoneEncryptedData;
import cn.anxingongyou.anxin.entity.UserWorkerInfo;

import java.io.IOException;
import java.util.Map;

public interface LoginService {
    //获取openid
    OpenIdJson getOpenID(PhoneEncryptedData phoneEncryptedData,String appID,String appSecret) throws IOException;
    // 解密获取手机号
    Map<String,Object> getPhoneMap(PhoneEncryptedData phoneEncryptedData, OpenIdJson openIdJson) throws IOException;

    Map<String,Object> addOrGetUser(Map<String,Object> phoneMap, OpenIdJson openIdJson, UserWorkerInfo userWorkerInfo);

    Map<String,Object> getUserInfo(Long id);
}
